package kr.haggenna.item.dao;

import java.util.List;

import kr.haggenna.item.domain.PurchaseMenu;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

@Component
public class PurchaseMenuDaoImpl extends SqlSessionDaoSupport implements PurchaseMenuDao{
	@Override
	public void insertPurchaseMenu(PurchaseMenu purchaseMenu) {
		getSqlSession().insert("insertPurchaseMenu", purchaseMenu);
	}
@Override
	public List<PurchaseMenu> getPurchaseMenuByPurNum(int pur_num) {
		List<PurchaseMenu> list = getSqlSession().selectList("getPurchaseMenuByPurNum", pur_num);
		return list;
	}
}
